package com.li.mapper;

import com.github.pagehelper.Page;
import com.li.pojo.AreaManage;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Author: zhiqingLi
 * @Description:
 * @Date: Created in 13:49 2024/3/13
 **/
@Mapper
public interface SubregionManageMapper {
    //查询全部 加上模糊查询
    Page<AreaManage> showList(@Param("nameAndAddress") String name, @Param("id") Integer currentId);

    //添加
    void addSubregion(AreaManage areaManage);

    //修改回显
    @Select("select * from area_manage where id = #{id};")
    AreaManage updGetById(Long id);

    //修改数据
    void updSubregion(AreaManage areaManage);

    //删除
    void delById(Long id);
}
